package com.jiazhong.cloud.sentinel.provider.controller;

import lombok.SneakyThrows;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sentinel_provider")
public class SentinelProviderController {
    @GetMapping("/a")
    @SneakyThrows
    public String a() {
        Thread.sleep(2000);
        return "This is SentinelProvider`a method!";
    }

    @GetMapping("/b")
    public String b() {
        return "This is SentinelProvider`b method!";
    }
}
